package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:23
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysUserDepartmentRelate implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long sysUserId;

    /**
     * Attribute sysUserId Be Seted Falg
     */
    private boolean sysUserIdSetted = false;

    /**
    * Attribute sysUserId is Null Falg
    */
    private boolean sysUserIdNull = false;
    private long sysDepartmentId;

    /**
     * Attribute sysDepartmentId Be Seted Falg
     */
    private boolean sysDepartmentIdSetted = false;

    /**
    * Attribute sysDepartmentId is Null Falg
    */
    private boolean sysDepartmentIdNull = false;
    private String departmentRole;

    /**
     * Attribute departmentRole Be Seted Falg
     */
    private boolean departmentRoleSetted = false;

    /**
    * Attribute departmentRole is Null Falg
    */
    private boolean departmentRoleNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String sysUserName;

    /**
     * Attribute sysUserName Be Seted Falg
     */
    private boolean sysUserNameSetted = false;

    /**
    * Attribute sysUserName is Null Falg
    */
    private boolean sysUserNameNull = false;
    private String sysUserAccount;

    /**
     * Attribute sysUserAccount Be Seted Falg
     */
    private boolean sysUserAccountSetted = false;

    /**
    * Attribute sysUserAccount is Null Falg
    */
    private boolean sysUserAccountNull = false;
    private String sysUserRemarks;

    /**
     * Attribute sysUserRemarks Be Seted Falg
     */
    private boolean sysUserRemarksSetted = false;

    /**
    * Attribute sysUserRemarks is Null Falg
    */
    private boolean sysUserRemarksNull = false;
    private String sysUserStatus;

    /**
     * Attribute sysUserStatus Be Seted Falg
     */
    private boolean sysUserStatusSetted = false;

    /**
    * Attribute sysUserStatus is Null Falg
    */
    private boolean sysUserStatusNull = false;
    private String sysUserMobilePhone;

    /**
     * Attribute sysUserMobilePhone Be Seted Falg
     */
    private boolean sysUserMobilePhoneSetted = false;

    /**
    * Attribute sysUserMobilePhone is Null Falg
    */
    private boolean sysUserMobilePhoneNull = false;
    private String departmentName;

    /**
     * Attribute departmentName Be Seted Falg
     */
    private boolean departmentNameSetted = false;

    /**
    * Attribute departmentName is Null Falg
    */
    private boolean departmentNameNull = false;

    public SysUserDepartmentRelate() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get sysUserId
         *
         * @return long
         */
    final public long getSysUserId() {
        return sysUserId;
    }

    /**
     * Set sysUserId
     *
     * @param long
     */
    final public void setSysUserId(long sysUserId) {
        this.sysUserId = sysUserId;

        this.sysUserIdSetted = true;

        this.setSysUserIdNull(false);
    }

    /**
     * Get sysUserId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysUserIdSetted() {
        return this.sysUserIdSetted;
    }

    /**
     * Set sysUserId Null
     *
     */
    final public void setSysUserIdNull() {
        this.sysUserIdNull = true;
    }

    final public void setSysUserIdNull(boolean aNullFlag) {
        this.sysUserIdNull = aNullFlag;
    }

    final public boolean isSysUserIdNull() {
        return this.sysUserIdNull;
    }

    /**
         * Get sysDepartmentId
         *
         * @return long
         */
    final public long getSysDepartmentId() {
        return sysDepartmentId;
    }

    /**
     * Set sysDepartmentId
     *
     * @param long
     */
    final public void setSysDepartmentId(long sysDepartmentId) {
        this.sysDepartmentId = sysDepartmentId;

        this.sysDepartmentIdSetted = true;

        this.setSysDepartmentIdNull(false);
    }

    /**
     * Get sysDepartmentId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysDepartmentIdSetted() {
        return this.sysDepartmentIdSetted;
    }

    /**
     * Set sysDepartmentId Null
     *
     */
    final public void setSysDepartmentIdNull() {
        this.sysDepartmentIdNull = true;
    }

    final public void setSysDepartmentIdNull(boolean aNullFlag) {
        this.sysDepartmentIdNull = aNullFlag;
    }

    final public boolean isSysDepartmentIdNull() {
        return this.sysDepartmentIdNull;
    }

    /**
         * Get departmentRole
         *
         * @return String
         */
    final public String getDepartmentRole() {
        if (isDepartmentRoleNull()) {
            return null;
        } else {
            return StringUtils.trim(departmentRole);
        }
    }

    /**
     * Set departmentRole
     *
     * @param String
     */
    final public void setDepartmentRole(String departmentRole) {
        this.departmentRole = StringUtils.trim(departmentRole);

        this.departmentRoleSetted = true;

        this.setDepartmentRoleNull(this.departmentRole == null);
    }

    /**
     * Get departmentRole Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDepartmentRoleSetted() {
        return this.departmentRoleSetted;
    }

    /**
     * Set departmentRole Null
     *
     */
    final public void setDepartmentRoleNull() {
        this.departmentRoleNull = true;
    }

    final public void setDepartmentRoleNull(boolean aNullFlag) {
        this.departmentRoleNull = aNullFlag;
    }

    final public boolean isDepartmentRoleNull() {
        return this.departmentRoleNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get sysUserName
         *
         * @return String
         */
    final public String getSysUserName() {
        if (isSysUserNameNull()) {
            return null;
        } else {
            return StringUtils.trim(sysUserName);
        }
    }

    /**
     * Set sysUserName
     *
     * @param String
     */
    final public void setSysUserName(String sysUserName) {
        this.sysUserName = StringUtils.trim(sysUserName);

        this.sysUserNameSetted = true;

        this.setSysUserNameNull(this.sysUserName == null);
    }

    /**
     * Get sysUserName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysUserNameSetted() {
        return this.sysUserNameSetted;
    }

    /**
     * Set sysUserName Null
     *
     */
    final public void setSysUserNameNull() {
        this.sysUserNameNull = true;
    }

    final public void setSysUserNameNull(boolean aNullFlag) {
        this.sysUserNameNull = aNullFlag;
    }

    final public boolean isSysUserNameNull() {
        return this.sysUserNameNull;
    }

    /**
         * Get sysUserAccount
         *
         * @return String
         */
    final public String getSysUserAccount() {
        if (isSysUserAccountNull()) {
            return null;
        } else {
            return StringUtils.trim(sysUserAccount);
        }
    }

    /**
     * Set sysUserAccount
     *
     * @param String
     */
    final public void setSysUserAccount(String sysUserAccount) {
        this.sysUserAccount = StringUtils.trim(sysUserAccount);

        this.sysUserAccountSetted = true;

        this.setSysUserAccountNull(this.sysUserAccount == null);
    }

    /**
     * Get sysUserAccount Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysUserAccountSetted() {
        return this.sysUserAccountSetted;
    }

    /**
     * Set sysUserAccount Null
     *
     */
    final public void setSysUserAccountNull() {
        this.sysUserAccountNull = true;
    }

    final public void setSysUserAccountNull(boolean aNullFlag) {
        this.sysUserAccountNull = aNullFlag;
    }

    final public boolean isSysUserAccountNull() {
        return this.sysUserAccountNull;
    }

    /**
         * Get sysUserRemarks
         *
         * @return String
         */
    final public String getSysUserRemarks() {
        if (isSysUserRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(sysUserRemarks);
        }
    }

    /**
     * Set sysUserRemarks
     *
     * @param String
     */
    final public void setSysUserRemarks(String sysUserRemarks) {
        this.sysUserRemarks = StringUtils.trim(sysUserRemarks);

        this.sysUserRemarksSetted = true;

        this.setSysUserRemarksNull(this.sysUserRemarks == null);
    }

    /**
     * Get sysUserRemarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysUserRemarksSetted() {
        return this.sysUserRemarksSetted;
    }

    /**
     * Set sysUserRemarks Null
     *
     */
    final public void setSysUserRemarksNull() {
        this.sysUserRemarksNull = true;
    }

    final public void setSysUserRemarksNull(boolean aNullFlag) {
        this.sysUserRemarksNull = aNullFlag;
    }

    final public boolean isSysUserRemarksNull() {
        return this.sysUserRemarksNull;
    }

    /**
         * Get sysUserStatus
         *
         * @return String
         */
    final public String getSysUserStatus() {
        if (isSysUserStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(sysUserStatus);
        }
    }

    /**
     * Set sysUserStatus
     *
     * @param String
     */
    final public void setSysUserStatus(String sysUserStatus) {
        this.sysUserStatus = StringUtils.trim(sysUserStatus);

        this.sysUserStatusSetted = true;

        this.setSysUserStatusNull(this.sysUserStatus == null);
    }

    /**
     * Get sysUserStatus Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysUserStatusSetted() {
        return this.sysUserStatusSetted;
    }

    /**
     * Set sysUserStatus Null
     *
     */
    final public void setSysUserStatusNull() {
        this.sysUserStatusNull = true;
    }

    final public void setSysUserStatusNull(boolean aNullFlag) {
        this.sysUserStatusNull = aNullFlag;
    }

    final public boolean isSysUserStatusNull() {
        return this.sysUserStatusNull;
    }

    /**
         * Get sysUserMobilePhone
         *
         * @return String
         */
    final public String getSysUserMobilePhone() {
        if (isSysUserMobilePhoneNull()) {
            return null;
        } else {
            return StringUtils.trim(sysUserMobilePhone);
        }
    }

    /**
     * Set sysUserMobilePhone
     *
     * @param String
     */
    final public void setSysUserMobilePhone(String sysUserMobilePhone) {
        this.sysUserMobilePhone = StringUtils.trim(sysUserMobilePhone);

        this.sysUserMobilePhoneSetted = true;

        this.setSysUserMobilePhoneNull(this.sysUserMobilePhone == null);
    }

    /**
     * Get sysUserMobilePhone Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysUserMobilePhoneSetted() {
        return this.sysUserMobilePhoneSetted;
    }

    /**
     * Set sysUserMobilePhone Null
     *
     */
    final public void setSysUserMobilePhoneNull() {
        this.sysUserMobilePhoneNull = true;
    }

    final public void setSysUserMobilePhoneNull(boolean aNullFlag) {
        this.sysUserMobilePhoneNull = aNullFlag;
    }

    final public boolean isSysUserMobilePhoneNull() {
        return this.sysUserMobilePhoneNull;
    }

    /**
         * Get departmentName
         *
         * @return String
         */
    final public String getDepartmentName() {
        if (isDepartmentNameNull()) {
            return null;
        } else {
            return StringUtils.trim(departmentName);
        }
    }

    /**
     * Set departmentName
     *
     * @param String
     */
    final public void setDepartmentName(String departmentName) {
        this.departmentName = StringUtils.trim(departmentName);

        this.departmentNameSetted = true;

        this.setDepartmentNameNull(this.departmentName == null);
    }

    /**
     * Get departmentName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDepartmentNameSetted() {
        return this.departmentNameSetted;
    }

    /**
     * Set departmentName Null
     *
     */
    final public void setDepartmentNameNull() {
        this.departmentNameNull = true;
    }

    final public void setDepartmentNameNull(boolean aNullFlag) {
        this.departmentNameNull = aNullFlag;
    }

    final public boolean isDepartmentNameNull() {
        return this.departmentNameNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysUserDepartmentRelate) == false) {
            return false;
        }

        SysUserDepartmentRelate other = (SysUserDepartmentRelate) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("sysUserRemarks=");
        buffer.append(this.sysUserRemarks);

        buffer.append("sysUserStatus=");
        buffer.append(this.sysUserStatus);

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("sysUserId=");
        buffer.append(this.sysUserId);

        buffer.append("sysDepartmentId=");
        buffer.append(this.sysDepartmentId);

        buffer.append("departmentRole=");
        buffer.append(this.departmentRole);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("sysUserName=");
        buffer.append(this.sysUserName);

        buffer.append("sysUserAccount=");
        buffer.append(this.sysUserAccount);

        buffer.append("departmentName=");
        buffer.append(this.departmentName);

        buffer.append("sysUserMobilePhone=");
        buffer.append(this.sysUserMobilePhone);

        buffer.append("]");

        return buffer.toString();
    }
}
